﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace ProjetS5
{
    public class DB_Effect : DatabaseTable
    {
        public DB_Effect()
        {
        }

        /// <summary>
        /// Effect's school.
        /// </summary>
        public DB_EffectSchool School { get; set; }

        /// <summary>
        /// Effect's type.
        /// </summary>
        public DB_TickType TickType { get; set; }

        /// <summary>
        /// Which stat it affects and its range (minimum/maximum) total.
        /// </summary>
        public KeyValuePair<ProjetS5.DB_Statistic, int[]> Affect { get; set; }

        /// <summary>
        /// Effect's duration.
        /// </summary>
        public TimeSpan Duration { get; set; }

        /// <summary>
        /// Number of times the effect ticks.
        /// </summary>
        public int NumberOfTicks { get; set; }

        /// <summary>
        /// Classify as buff or debuff.
        /// </summary>
        public bool IsBenefical { get; set; }

        /// <summary>
        /// Is effect displayed.
        /// </summary>
        public bool IsVisible { get; set; }

        /// <summary>
        /// Effect's icon.
        /// </summary>
        public Texture2D Icon { get; set; }
    }
}
